<%@ Control Language="c#" AutoEventWireup="false" Codebehind="Dept.ascx.cs" Inherits="gdlmo.DNN.Modules.Dept.Dept" %>
<div>
    <asp:GridView ID="gdvDept" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="DeptId" >
        <Columns>
           
            <asp:BoundField DataField="DeptName" HeaderText="部门名称" />
            <asp:CheckBoxField DataField="IsActive" HeaderText="是否激活" />
            
            <asp:TemplateField>
                <ItemTemplate>
                    <asp:HyperLink ID="Hyperlink1" runat="server" 
                        NavigateUrl='<%# EditUrl("DeptID",DataBinder.Eval(Container, "DataItem.DeptID").ToString()) %>' 
                        Visible="<%# IsEditable %>">
						<asp:Image ID="Hyperlink1Image" Runat="server" AlternateText="Edit" ImageUrl="~/images/edit.gif" resourcekey="Edit" 
    Visible="<%#IsEditable%>" />
					</asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            
        </Columns>
        
    </asp:GridView>
</div>